<?php $uri = $this->uri->segment(3,0)?>
<script>
function setFocus(){
	$('identity').focus()
}

function box_message(titleMessage,message){
	box_message = new LightFace({ 
			title: titleMessage, 
			width : 300,
			content: "<div class='message'>"+message+"</div>"
			,
			buttons: [{ title: 'Close', images_content: function() { this.close();}, color: 'green'}]
		});
		box_message.open();	
}


window.addEvent('load', function(){
		
		$('description').mooEditable({
		actions: 'bold italic underline strikethrough | formatBlock justifyleft justifyright justifycenter justifyfull | insertunorderedlist insertorderedlist indent outdent insertHorizontalRule | undo redo removeformat | createlink unlink | urlimage | toggleview'
		});
		
		var tags = new TextboxList('tag',{
					bitsOptions:{editable:{addKeys: 188}},
					});
	//setFocus();
        new FormCheck('images_content_add', {
		display : {
			errorsLocation : 1,
			showErrors : 1,
			addClassErrorToField : 1
		}
	})
});

</script>
<style type="text/css">
			.tag { margin-bottom: 10px; }
            
            /* Setting widget width example */
            .textboxlist {width:400px;}
            
            /* Preloader for autocomplete */
            .textboxlist-loading { background: url('images/spinner.gif') no-repeat 380px center; }
            
            /* Autocomplete results styling */
            .form_friends .textboxlist-autocomplete-result { overflow: hidden; zoom: 1; }
            .form_friends .textboxlist-autocomplete-result img { float: left; padding-right: 10px; }
            
            .note { color: #666; font-size: 90%; }
            #footer { margin: 50px; text-align: center; }
	
			#description{
				width: 700px;
				height: 200px;
				padding: 10px;
				border: 2px solid #ddd;
			}
			</style>
 
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td valign="top">
      <form name="images_content_add" id="images_content_add" method="post" enctype="multipart/form-data" action="<?php echo site_url(array('just4u','images_save',$uri))?>">
  <table width="0%" border="0" cellspacing="2" cellpadding="3">
    <tr>
      <th align="right">Name</th>
      <td>
      <input name="name" type="text" id="name" size="35" maxlength="100" class="validate['required']" />
      <input type="hidden" name="album" id="album" value="<?php echo $uri?>" /></td>
    </tr>
    <tr>
      <th align="right">Images</th>
      <td><input type="file" name="images" id="images" /></td>
    </tr>
    <tr>
      <th align="right">Tag</th>
      <td><input name="tag" type="text" id="tag" class="validate['required']" /></td>
    </tr>
    <tr>
      <th align="right" valign="top">Description
        </th>
      <td><textarea name="description" id="description" cols="45" rows="6" class="validate['required']"></textarea></td>
    </tr>
    <tr>
      <th align="right" valign="top">&nbsp;</th>
      <td align="right"><input type="reset" name="button2" id="button2" value="Reset" class="uiButtonRounded" />
        <input type="submit" name="button" id="button" value="Save" class="uiButtonRounded" /></td>
    </tr>
  </table>
</form>
    </td>
    <td width="30%" valign="top">&nbsp;</td>
  </tr>
</table>
